gdk/wayland: Create pad devices on enter
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 13 Jun 2023 20:11:15 +0000 (22:11 +0200)
committerRaspbian forward porter <root@raspbian.org>
Wed, 22 Nov 2023 04:54:09 +0000 (04:54 +0000)
commit764c259155abcac21d7d00acf7502035768e4215
treeccbf03cccd78b548a7427a9406fcaca0f53b0346
parentb2059e79b24b36c9d6f8990d30ffb765f4505f0f
gdk/wayland: Create pad devices on enter

We were creating the pad device on wp_tablet_pad.done, but
at that time we do not know what tablet it is associated with,
thus we cannot get appropriate vid/pid/name properties for it.

To get that, we need to wait for the pad to enter a surface,
at that time we do know what tablet it is associated with, so
we can get better information about the device.

There are pads that may plausibly "change" tablet between
one .enter event and the next (e.g. Wacom Express Key Remote),
but this situation is highly unlikely. The pad devices created
are thus persistent until that situation happens.

Forwarded: https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/6049
Origin: 3.24.39, commit:6070f1092258e053ecdbe2dbf6148d2dd9d8b326

Gbp-Pq: Name gdk-wayland-Create-pad-devices-on-enter.patch
gdk/wayland/gdkdevice-wayland.c